''========================================================
'' Autor: 		Luis Antonio Lara Capetillo
'' Fecha Creación: 	4/6/2013
'' Descripcion: 	Clase perteneciente a la capa de negocios
''========================================================

Imports CapaDatos
Imports CapaEntidad

Public Class CN_DataAccesReparacion_Emergencia

	Public Sub InsertarDataAccesReparacion_Emergencia(ByVal DataAccesReparacion_Emergencia As DataAccesReparacion_Emergencia, ByVal conexion As String, ByRef Verificador As Integer)
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesReparacion_Emergencia()
			claseCapaDatos.InsertarDataAccesReparacion_Emergencia(DataAccesReparacion_Emergencia, conexion, Verificador)
		Catch ex As Exception
			Throw ex
		End Try
	End Sub
	Public Sub ConsultaDataAccesReparacion_Emergencia(ByRef Grid As System.Web.UI.WebControls.GridView, ByVal DataAccesReparacion_Emergencia As DataAccesReparacion_Emergencia, ByVal conexion As String, ByRef List As System.Collections.Generic.List(Of DataAccesReparacion_Emergencia))
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesReparacion_Emergencia()
			claseCapaDatos.ConsultaDataAccesReparacion_Emergencia(DataAccesReparacion_Emergencia, conexion, List)

			Grid.DataSource = List
			Grid.DataBind()
		Catch ex As Exception
			Throw ex
		End Try
	End Sub
	Public Sub ModificarDataAccesReparacion_Emergencia(ByVal DataAccesReparacion_Emergencia As DataAccesReparacion_Emergencia, ByVal conexion As String, ByRef Verificador As Integer)
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesReparacion_Emergencia()
			claseCapaDatos.ModificarDataAccesReparacion_Emergencia(DataAccesReparacion_Emergencia, conexion, Verificador)
		Catch ex As Exception
		Throw ex
		End Try
	End Sub

End Class